<%@page import="org.shop.entity.security.MyUserDetail" %>
<%@page import="org.shop.util.ObjUtil" %>
<%@page import="org.springframework.security.core.context.SecurityContextImpl" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";

    SecurityContextImpl securityContextImpl = (SecurityContextImpl) request.getSession().getAttribute("SPRING_SECURITY_CONTEXT");
    MyUserDetail ud = null;
    Byte state = 0;
    if (ObjUtil.isNotNullAndEmpty(securityContextImpl)) {
        ud = (MyUserDetail) securityContextImpl.getAuthentication().getPrincipal();
        state = ud.getState();
    }
%>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1 user-scalable=0">
    <title>论坛</title>
    <link rel="stylesheet" href="<%=basePath%>assets/css/public.css">
    <link rel="stylesheet" href="<%=basePath%>assets/css/page.css">
    <link rel="stylesheet" href="<%=basePath%>assets/font-awesome-4.7.0/css/font-awesome.min.css">
    <script src="<%=basePath%>assets/js/jquery-2.1.1.min.js"></script>
    <script src="<%=basePath%>assets/js/fontSize.js"></script>
    <link href="<%=basePath%>/assets/layer/mobile/need/layer.css" rel="stylesheet" type="text/css">
    <script src="<%=basePath%>/assets/layer/mobile/layer.js"></script>

    <style>
        body {
            padding-top: 0.8rem;
            background-color: #F3F1F1;
        }

        .send {
            float: right;
            font-size: 18px;
            color: #FF4E37;
            line-height: 0.8rem;
            margin-right: 0.2rem;
        }

        .job_info,.job_details {
            background-color: #fff;
            padding: 0.2rem;
        }

        .job_info input {
            width: 100%;
            line-height: 0.8rem;
            border-bottom: 1px solid #E9E9E9;
            font-size: 0.26rem;
        }
        .job_info .add{
            border-bottom: none;
        }

        .job_details textarea {
            width: 100%;
            border: none;
            border-bottom: 1px solid #E9E9E9;
            font-size: 0.26rem;
            outline: none;
        }
        .job_details .skill{
            border-bottom: none;
        }

        input::-webkit-input-placeholder,textarea::-webkit-input-placeholder { /* WebKit browsers */
            color: #999;
        }
        input:-moz-placeholder,textarea::-webkit-input-placeholder { /* Mozilla Firefox 4 to 18 */
            color: #999;
        }
        input::-moz-placeholder,textarea::-webkit-input-placeholder { /* Mozilla Firefox 19+ */
            color: #999;
        }
        input:-ms-input-placeholder,textarea::-webkit-input-placeholder { /* Internet Explorer 10+ */
            color: #999;
        }

    </style>
</head>
<body>
<input id="basePath" type="hidden" value="<%=basePath%>">
<div class="header">
    <a class="returnInfo" href="#" onclick="window.history.go(-1)"><i class="fa fa-angle-left"></i></a>
    发布工作
    <a class="send">发布</a>
</div>
<div class="job_info border-bottom-8">
    <input type="text" class="job" placeholder="工作岗位">
    <input type="text" class="price" placeholder="工资价位">
    <input type="text" class="time" placeholder="工作时间">
    <input type="text" class="phone" placeholder="联系电话">
    <input type="text" class="add" placeholder="工作地点">
</div>
<div class="job_details">
    <textarea class="details" name="" cols="30" rows="10" placeholder="请描述你的工作内容"></textarea>
    <textarea class="skill" name="" cols="30" rows="10" placeholder="请描述工作需要的技能"></textarea>
</div>
</body>
</html>